<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
	<title>家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	 <link href="__TMPL__css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/m.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/iscroll.js"></script>
	<script src="__TMPL__js/m.js"></script>
	<!--[if lt IE 9]>
	<script src="js/html5.js"></script>
	<![endif]-->
    <!--<script>
	
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>-->
</head> 
<body><!-- 背景可后台替换 -->
<div class="wrap ui-page  ui-body-c ui-page-active webwidth">
	
	<div class="ui-nav" style="height:80px;padding:10px 0 0 10px;background:#ddd">
<form method="post" action="/api.php/Index/result/type/teacher/id/{$id}">
<select name="class_id" id="class_id" style="width:130px;">
<volist name="finalclasslist" id="vo">
<option value="{$vo.id}">{$vo.class_name}</option>
</volist>
</select>
<select name="exam_id" id="exam_id" style="width:130px;">
<volist name="examlist" id="vo">
<option value="{$vo.id}">{$vo.exam_name}</option>

</volist>
</select>

<input name="name" type="text" class="ui-input" id="name" size="12" value="学生姓名" style="margin:0"> 
<button class="btn" type="submit">搜索</button>
</form>
</div>
<div id="wrapper" style="background:#FFF;top:100px;"><!-- 有ui-nav存在时top:100px -->
    <if condition="($examinfo neq '') and ($classinfo neq '')">
	<div style="text-align:center ;">{$examinfo.exam_name}</div>
<div >&nbsp; 班级：{$classinfo.class_name}</div>

			<table width="98%" border="0" cellspacing="0" cellpadding="0"  class="table table-bordered nowrap">
  <tr>
  <th  align="center" >学号</th>
    <th  align="center" >姓名</th>
     <volist name="subject" id="sj">
     	    <if condition="($sj['KCMC'] neq '')">

				<th  align="center" >{$sj.KCMC}</th>
                </if>
	</volist>
 </tr>
 <volist name="stlist" id="vs">

 <tr>
  <td  align="center" >{$vs.XH}</td>
    <td  align="center" >{$vs.XM}</td>
     <volist name="subject" id="sj">
          	    <if condition="($sj['KCMC'] neq '')">

		<td  align="center" >{~loadscoreresult($examinfo[id],$vs['id'],$sj['id'])}
        </if>
        </td>
	</volist>
 </tr>
</volist>
</table>    
</if>

		</div>
</div>

		

</body>
</html>